﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Microsoft.JCI.Common.Utility
{
    /// <summary>
    /// 操作返回结果
    /// </summary>
    public class OperateResult
    {
        private OperateStatus errorCode = OperateStatus.Normal;
        public OperateStatus ErrorCode { get{return errorCode;} set{errorCode = value;} }

        /// <summary>
        /// 详细错误信息。
        /// </summary>
        public string ErrorMessage { get; set; }

        /// <summary>
        /// 返回对象
        /// </summary>
        public object Result { get; set; }

        /// <summary>
        /// 发送完毕后的RelationNo
        /// </summary>
        public object Result2 { get; set; }
    }

    public enum OperateStatus
    { 
        /// <summary>
        /// 正常
        /// </summary>
        Normal,
        /// <summary>
        /// 需要显示给客户的错误
        /// </summary>
        ToViewError,
        /// <summary>
        /// 系统错误
        /// </summary>
        SystemError,
    }
}
